def go_to_bed():
    import time
    import random
    print(F'💤睡觉中...')
    time.sleep(random.randint(1, 3))


def outer(func):
    def inner():
        print('①准备睡觉')
        func()
        print('②睡觉结束😟')

    return inner


do_sleep = outer(go_to_bed)
do_sleep()
